package edu.calpoly.android.lab1jmt;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloWorld extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Bundle extras = this.getIntent().getExtras();
  
        String username = extras != null ? extras.getString("userName") : "no value entered";
        
        TextView label = (TextView) this.findViewById(R.id.MyIdMainText01);
        label.setText("Hello " + username + "!");
        
        
        
        
        

    }
}